package top.buluoluo.productservice.enums;

public enum StatusMethod {
    ACTIVE("启用"),
    INACTIVE("禁用"),
    PENDING("待审核");

    private final String description;


    StatusMethod(String description) {
        this.description = description;
    }
    public static StatusMethod fromValue(String value) {
        for (StatusMethod method : values()) {
            if (method.name().equalsIgnoreCase(value)) {
                return method;
            }
        }
        throw new IllegalArgumentException("未知折扣状态: " + value);
    }
}
